/*
 * Binary.cpp
 *
 *  Created on: 29.04.2012
 *      Author: Eugene Kornykhin
 */

#include "Binary.h"


Binary::Binary() {
}



Binary::~Binary() {
}


void Binary::execute(Interpreter & interpreter)
{
	const PElement &y = interpreter.popPolizElement();
	const PElement &x = interpreter.popPolizElement();
	push_operation_result(interpreter, x, y);
}

PolizPosition Binary::next_position_after(PolizPosition p) const
{
	return p.next();
}


bool Binary::isHalt() const
{
	return false;
}
